@charset "utf-8";
/**
 * 动态获取角色数据样式
 */

/**************************************/
/* 公共设置部分 */
/**************************************/
* {
    box-sizing: border-box;
}
body {
    font: 16px 'JetBrains Mono', '微软雅黑', sans-serif;
}

/**** 公共类定义 ****/
.center-block {
    width: 1200px;
    margin: 0 auto;
}

/**************************************/
/* 细节设置部分 */
/**************************************/

/* 角色图表 */
.roles-charts {
    height: 420px;
}

/**** 角色图鉴 ****/
.role-illus {
    padding: 20px 0 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
.role-illus .role {
    flex-basis: 31%;
    padding-bottom: 10px;
    background-color: #eeeeee;
    border-radius: 8px;
    margin-bottom: 36px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    /* transform: scale(1) rotate(0deg); */
    transition: all 0.3s;
    position: relative;
}
.role-illus .role:nth-child(3n) {
    margin-right: 0;
}
.role-illus .role:hover {
    background-color: #f9f9f9;
    transform: scale(1.4) rotate(-10deg);
    z-index: 1;
}
.role-illus .role > div {
    padding: 8px 12px;
}
.role-illus .role img {
    height: 180px;
    margin: 0 auto;
    display: block;
    filter: grayscale(1);
    transition: all 0.6s cubic-bezier(1, 0, 1, 0.46);
}
.role-illus .role:hover img {
    filter: grayscale(0);
}
.role-illus .role > div label,
.role-illus .role > div span {
    display: inline-block;
    vertical-align: middle;
}

.role-illus .role > div label {
    width: 4.2em;
    color: #888888;
}
.role-illus .role:hover> div .primary {
    color: #2396fd;
}

/**** 角色信息对话框 ****/
#dialog-box {
    padding: 20px;
    background-color: #fafafa;
    border: 1px solid #cbcbcb;
    border-radius: 8px;
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 11;
    transform: translate(-50%, -50%);
    display: none;
    box-shadow: 0 8px 16px rgba(27, 27, 27, 0.3);
}
/* 设置头像和详情在同一行显示 */
#dialog-box .thumbnail,
#dialog-box .detail {
    float: left;
}
/* 头像 */
#dialog-box .thumbnail {
    margin-right: 16px;
}
#dialog-box .thumbnail img {
    height: 128px;
}
/* 详情 */
#dialog-box .detail-line {
    line-height: 1.6;
}
#dialog-box .detail-line > div {
    display: inline-block;
    vertical-align: middle;
    white-space: normal;
}
#dialog-box .detail-line > div:first-child {
    width: 5em;
    color: #8d8d8d;
}
/* 角色名称 */
#dialog-box .detail-line-name {
    font-weight: bold;
    color: #0f308b;
}
/* 角色主系 */
#dialog-box .primary {
    color: #dda115;
}
/* 关闭角色信息对话框按钮 */
#dialog-box .close-dialog {
    --btnSize: 30px;
    width: var(--btnSize);
    height: var(--btnSize);
    line-height: var(--btnSize);
    font-size: var(--btnSize);
    text-align: center;
    color: #5c5c5c;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
}
#dialog-box .close-dialog:hover {
    color: #2a2a2a;
}
/* 对话框遮罩层 */
.dialog-masklayer {
    background-color: rgba(0, 0, 0, 0.685);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}
